package com.smart.model.convert;

import com.smart.model.dtomapper.ManageTempUserRegistrationDtoMapper;
import com.smart.model.domain.ManageTempUserRegistrationDO;
import com.smart.model.vo.ManageTempUserRegistrationVO;
import com.google.common.collect.Lists;
import org.apache.commons.collections4.CollectionUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zyh
 */
public class ManageTempUserRegistrationConvert {

    public static List<ManageTempUserRegistrationVO> buildManageTempUserRegistrationVoList(List<ManageTempUserRegistrationDO> manageTempUserRegistrationDOList) {
        if (CollectionUtils.isEmpty(manageTempUserRegistrationDOList)) {
            return Lists.newArrayList();
        }
        List<ManageTempUserRegistrationVO> manageTempUserRegistrationVOList = new ArrayList<>();
        for (ManageTempUserRegistrationDO manageTempUserRegistrationDO : manageTempUserRegistrationDOList) {
            manageTempUserRegistrationVOList.add(ManageTempUserRegistrationDtoMapper.INSTANCE.do2VO(manageTempUserRegistrationDO));
        }

        return manageTempUserRegistrationVOList;
    }
}
